# @shuaige : 陈世玉
# @name :002-urllib库.py
# @time :2024/9/18 下午5:30
import urllib.request
url="https://www.bing.com/AS/Suggestions/v2?qry=&cp=0&pt=msnedgentp&ascv=json&cvid=66ea9e37473e4347b015d63c674fbef"
response=urllib.request.urlopen(url)
# print(response.read().decode("utf-8"))
print(response.geturl())# http://www.baidu.com/获取网页地址
print(response.getcode())#200表示访问成功

